package cn.hx.whh.automaticticket.params;


import com.alibaba.fastjson.JSONObject;

import cn.hx.whh.automaticticket.utils.MapUtils;

/**
 * 登录请求方式
 */
public class LoginReport implements RequestParams {
    public String account;
    public String password;

    @Override
    public String toJSONString() {
        return this.toString();
    }

    @Override
    public JSONObject toJSONObject() {
        return JSONObject.parseObject(toString());
    }

    @Override
    public MapUtils toMapUtils() {
        MapUtils map = MapUtils.getHttpInstance();
        map.put("account", this.account);
        map.put("password", this.password);
        return map;
    }

    @Override
    public String toString() {
        return "{" +
                "\"account\"=\"" + account + "\"" +
                ",\"password\"=\"" + password + "\"" +
                "}";
    }
}
